package com.hevery.controller;

import com.hevery.properties.GirlProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: Hevery
 * @Description:
 * @Date: Created on 2017/9/14
 * @Modified By:
 */

@RestController
public class HelloController {

   /* @Value("${cupsize}")
    private String cupsize;

    @Value("${age}")
    private int age;

    @Value("${content}")
    private String content;*/
   @Autowired
   private GirlProperties girlProperties;

    //@RequestMapping(value = "/{id}/hello" ,method = RequestMethod.GET)
    @GetMapping("/hello")
    public String say(@RequestParam(value = "id",required = false,defaultValue = "0")Integer id){
        //return girlProperties.getCupSize();
        //return "index";
        return "id ="+id;
    }
}
